﻿using System;

namespace Demo05201
{
    class Program
    {
        static void Main(string[] args)
        {
            //Tiger t = new Tiger();
            //t.Leg = 4;
            //t.Walk();
            //t.Eat();
            //t.Speet();
            //t.Car();
            //t.Trait();
            //t.NightVision();

            //Console.WriteLine("-----------分割线---------------");

            //Cat c = new Cat();
            //c.Leg = 4;
            //c.Walk();
            //c.Eat();
            //c.Speet();
            //c.Car();
            //c.Trait();
            //c.NightVision();
            //Console.WriteLine("-----------分割线---------------");

            //Eagle e = new Eagle();
            //e.Leg = 2;
            //e.Walk();
            //e.Eat();
            //e.Speet();
            //e.Car();
            //e.Trait();
            //e.Fly();
            //Console.WriteLine("-----------分割线---------------");

            //Swallow s = new Swallow();
            //s.Leg = 2;
            //s.Walk();
            //s.Eat();
            //s.Speet();
            //s.Car();
            //s.Trait();
            //s.Fly();
            //Console.WriteLine("-----------分割线---------------");

            Console.WriteLine("欢迎来到派森宠物店，请选择您要寄养的动物：1、猫 2、燕子 3、老鹰 4、老虎");
            int key = int.Parse(Console.ReadLine());
            Animalia a;
            switch (key)
            {
                case 1:
                    a = new Cat();
                    break;
                case 2:
                    a = new Swallow();
                    break;
                case 3:
                    a = new Eagle();
                    break;
                case 4:
                    a = new Tiger();
                    break;
                default:
                    Console.WriteLine("想清楚再选！");
                    a = new Tiger();
                    break;
            }
            Petstore ps = new Petstore();
            ps.ConsignAnimal(a);

        }
    }
}
